package IO;

import java.io.*;

public class Zjkqtp {
    public static void main(String[] args) throws IOException {
        /*InputStream is=new FileInputStream("a.jpg");
        OutputStream os=new FileOutputStream("b.jpg");
        int len;
        while ((len = is.read()) != -1) {
            os.write(len);
        }
        is.close();
        os.close();*/
        InputStream is=new FileInputStream("a.jpg");
        OutputStream os=new FileOutputStream("c.jpg");
        byte [] bys=new byte[1024];
        int len;
        while ((len = is.read(bys)) != -1) {
            os.write(bys,0,len);
        }
        is.close();
        os.close();
    }
}
